import request from '@/api/request'


export function getWeChatUser(openid) {
  return request({
    url: `/wechat/groups_wechat_user/${openid}/`,
    method: 'GET',
  })
}

//员工
export function getGroupsEmployees(params) {
  return request({
    url: '/wechat/groups_user/',
    method: 'GET',
    params
  })
}

//统计查询
export function getGroupsSearchStats(params) {
  return request({
    url: '/order/wx_groups_car_stats/',
    method: 'GET',
    params
  })
}

//日报表
export function getGroupsDayReport(params) {
  return request({
    url: '/order/wx_groups_car_day_stats/',
    method: 'GET',
    params
  })
}


//月报表
export function getGroupsMonthReport(params) {
  return request({
    url: '/order/wx_groups_car_month_stats/',
    method: 'GET',
    params
  })
}

//年报表
export function getGroupsYearReport(params) {
  return request({
    url: '/order/wx_groups_car_year_stats/',
    method: 'GET',
    params
  })
}